<?php include_once("DataProvider.php");
$filename="info.txt";
$fp=DataProvider::docfile($filename);
?>
<!doctype html>
<html class="no-js">

	<?php
	include_once("header.php");
	?>
	<!-- ENDS HEADER -->

	<!-- MAIN -->
	<div id="main">
		<div class="wrapper cf">
			<!-- page content-->
			<div id="page-content" class="cf">
				<!-- Map -->
				<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=true" /></script>
				<script type="text/javascript">
					function initialize() {
						var latlng = new google.maps.LatLng(10.886345,106.604314);
						var myOptions = {
						  zoom: 50,
						  center: latlng,
						  mapTypeId: google.maps.MapTypeId.ROADMAP
					};
					var map = new google.maps.Map(document.getElementById("map_canvas"),
					    myOptions);
					}
				</script>

				<div id="map-holder">
					<div id="map_canvas"></div>
					<div id="map-content">
						<h3>VỊ TRÍ CÔNG TY</h3>
					</div>
				</div>

				<!-- ENDS Map -->
				<p>
					<h3>LIÊN HỆ:</h3>
				</p>
				<p>
					<h4>Đặt hàng:</h4><br>
					<a href="ymsgr:SendIM?<?php echo $fp[4];?>">
						<img src='http://opi.yahoo.com/online?u=<?php echo $fp[4];?>&m=g&t=2'/>
				</p>	
					</a>
					
						<p>
							
								<h2><strong><?php echo $fp[0];?></strong></h2>
								<h4>
								<br>
								&nbsp;&nbsp;&nbsp;<img src="img/mono-icons/address.png" height="32px" width="32px" > Địa chỉ: <?php echo $fp[1];?>
								<br>
								<br>
								&nbsp;&nbsp;&nbsp;<img src="img/mono-icons/phone.png"> Điện thoại: <?php echo $fp[2];?>
								<br>
								<br>&nbsp;&nbsp;&nbsp;<img src="img/mono-icons/hotline.png">Hotline: <?php echo $fp[2];?>
						</h4>
						</p>
						<p>
							<h3>BIỂU MẪU LIÊN HỆ:</h3>
						</p>
						<p>Điền đầy đủ thông tin bên dưới để liên hệ với chúng tôi.</p>
						<!-- form -->
						<script type="text/javascript" src="js/form-validation.js"></script>
						<form id="contactForm" action="lienhe.php" method="post">
							<fieldset>

								<p>
									<label for="name" >Tên của bạn</label>
									<input name="txt_ten"  id="name" type="text" class="form-poshytip" title="Gõ tên của bạn" />
								</p>

								<p>
									<label for="email" >Email</label>
									<input name="txt_email"  id="email" type="text" class="form-poshytip" title="Địa chỉ Email" />
								</p>

								<p>
									<script type="text/javascript" src="ckeditor/sample.js"></script>
									<script type="application/javascript" src="ckeditor/ckeditor.js"></script>
									<label for="comments">Nội dung</label>
									<textarea rows="20" cols="70" class="ckeditor" id="batky" name="txt_noidung" ></textarea>
								</p>

								<p>
									<input type="submit" value="Gửi" name="btn_gui" id="submit" />
									<span id="error" class="warning">Message</span>
								</p>
							</fieldset>

						</form>
						<p id="sent-form-msg" class="success">Form data sent. Thanks for your comments.</p>
						<!-- ENDS form -->

					</div>
					<!-- ENDS page content-->

				</div>
				<!-- ENDS WRAPPER -->
			</div>
			<!-- ENDS MAIN -->

			<!-- FOOTER -->
			<?php require_once("footer.php") ?>
<!-- ENDS FOOTER -->

<!-- Start google map -->
<script>initialize();</script>

</body>

</html>
<?php
	if(isset($_REQUEST["btn_gui"]))
	{
		$tieude="DONG GOP Y KIEN";
		SendMail("ltbaogt@gmail.com","lieuthaiba321",$_REQUEST["txt_email"],"ltbaogt@gmail.com",$_REQUEST["txt_ten"],"ADMIN",$tieude,$_REQUEST["txt_noidung"]);
	}

?>